package com.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Discription:
 */
public class Servlet2 extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String username = request.getParameter("username");
        System.out.println("在Servlet2（柜台2）中查看参数（材料）"+username);

        //查看Servlet1 柜台1是否有盖章
        Object key = request.getAttribute("key");
        System.out.println("Servlet1柜台1是否有章"+key);

        //处理自己的业务
        System.out.println("Servlet2 柜台2处理自己的业务");
    }
}
